package io.renren.modules.MailCode.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.MailCode.dao.V9CodeDao;
import io.renren.modules.MailCode.entity.V9CodeEntity;
import io.renren.modules.MailCode.service.V9CodeService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("v9CodeService")
public class V9CodeServiceImpl extends ServiceImpl<V9CodeDao, V9CodeEntity> implements V9CodeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<V9CodeEntity> page = this.page(
                new Query<V9CodeEntity>().getPage(params),
                new QueryWrapper<V9CodeEntity>()
        );

        return new PageUtils(page);
    }
}
